#!/bin/sh

cd "$(dirname "$0")"

cd ../../..

docker run \
  -e USER="$(id -u)" \
  -u="$(id -u)" \
  -v $(pwd):/src/workspace \
  -v /etc/passwd:/etc/passwd \
  -w /src/workspace \
  emgu/bazel-android:latest \
  /bin/bash -c "/emsdk/emsdk activate latest; source /emsdk/emsdk_env.sh; cd platforms/emscripten; ./cmake_configure.sh"
